<template>
	<view class="mainContainer">
        <web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(options) {
			this.url = options.url;
            const title = options.title;
            if (title) {
                uni.setNavigationBarTitle({
                    title: title
                });
            }
		}
	}
</script>

<style lang="scss" scoped>
.mainContainer {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}
</style>
